import Vue from 'vue';
import Vuex from 'vuex';
import * as actions from './actions';
import * as getters from './getters';

import * as mutations from './mutations';
import createLogger from 'vuex/dist/logger';

Vue.use(Vuex);

const state = {
    comments: [],
};

export default new Vuex.Store({
    plugins: [createLogger()],
    state,
    actions,
    getters,
    mutations,
});
